﻿using Data.Car_Rental;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Service.Rental
{
    /// <summary>
    /// 业务层基类
    /// </summary>
    public class ServiceBase
    {
        public ServiceBase()
        {
            VMessage = new Entity.VMessage();
        }
        /// <summary>
        /// 统一消息
        /// </summary>
        protected Entity.VMessage VMessage { get; set; }

        public Car_RentalRepository<TEntity> LoadRepository<TEntity>() where TEntity : Entity.EntityBase
        {
            return new Car_RentalRepository<TEntity>();
        }
    }
}
